import { createRouter, createWebHistory } from "vue-router";
import Layout from "@/views/Layout/index.vue";
import Message from "@/views/Layout/components/message.vue";
import Login from "@/views/Login/index.vue";
import Details from "@/views/Layout/components/Detail.vue";
import Chaxun from "@/views/Layout/components/Chaxun.vue";
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      component: Layout,
      children: [
        {
          path: "",
          component: Message,
        },
        {
          path: "/chaxun",
          component: Chaxun,
        },
      ],
    },
    {
      path: "/login",
      component: Login,
    },
    {
      path: "/details",
      component: Details,
    },
  ],
});

export default router;
